Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add clang_tidy bazel rule with example #65

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

wojciechmadry
Copy link

Hi, I created a bazel rule so that it can be used as described in the readme.

This is not exactly the same solution, but the issue is mentioned here: #15

It is not perfect code, I created it for my own needs, but I think it can be a good base for future development.

I'm just sharing this, maybe it will be useful to someone.

@erenon
Copy link
Owner

erenon commented May 23, 2024

Hi, thanks for the MR. I really like that this moves the check from the aspect build to a test step, because of the reasons in #15. Perhaps we should eventually move to this approach. I do not like the excess duplication of code - is there a reasonable way to reduce that?

@wojciechmadry
Copy link
Author

I think so, I can try next week to make python functions public so they can be imported.

@wojciechmadry
Copy link
Author

Hi, @erenon,
Just FYI:
I removed the duplicate code, making some functions public.
The only thing I left is the implementation of the rule/aspect, as they are slightly different.
They have a bit in common, but I think there is no point in breaking them into smaller functions. (Maybe in future)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants